package csu.big_article.msg;


import lombok.Getter;

@Getter
public enum ResponseCode {

    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),

    // 10000-10030 用户模块
    UserRegisterSuccess(10000,"注册成功"),
    UserLoginSuccess(10001,"登陆成功"),

    UserRegisterMissingParam(10010,"缺少参数"),
    UserNameOrPasswordNotNull(10011,"用户名或密码格式错误"),
    UserNameDuplicate(10012,"用户名已存在"),
    UserNameOrPasswordError(10013,"UserNameOrPasswordError"),
    ;

    private final int code;
    private final String description;

    ResponseCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

}
